package com.yadong.smarthome.controldevice.connectionimpl;

import java.util.ArrayList;
import java.util.List;

import com.yadong.smarthome2.protocol2.ResultProtocol.DeviceInfo.DeviceType;
import com.yadong.smarthome2.protocol2.ResultProtocol.DeviceInfo.Status;
import com.yadong.smarthome2.protocol2.Utils;
import com.yadong.smarthome2.protocol2.client.DeviceInfoManager;
import com.yadong.smarthome2.protocol2.client.EmptyFunctionManagerImpl;

public class DeviceInfoManagerImpl extends DeviceInfoManager {
    private static final int CURRENT_DEVICE_INFO_VERSION = 1;

    public DeviceInfoManagerImpl() {
        super(new EmptyFunctionManagerImpl());
    }

    @Override
    protected DeviceType getDeviceType() {
        return DeviceType.CONTROL;
    }

    @Override
    protected String getDeviceDescription() {
        return "ControlDevice";
    }

    @Override
    protected List<Status> getStatusInfo() {
        List<Status> status = new ArrayList<Status>();
        Status.Builder statusBuilder = Status.newBuilder();
        status.add(Utils.createStatsu(statusBuilder, "receive_message", "S"));
        return status;
    }

    @Override
    protected int getCurrentDeviceInfoVersion() {
        return CURRENT_DEVICE_INFO_VERSION;
    }

}
